package org.jeecg.modules.lab.entrust.service;


import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.lab.entrust.entity.LabEntrustSample;
import org.jeecg.modules.lab.entrust.entity.LabWentrust;
import org.jeecg.modules.lab.entrust.entity.LabWsupervise;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 监督抽查表
 * @Author: jeecg-boot
 * @Date: 2023-09-18
 * @Version: V1.0
 */
public interface ILabWsuperviseService extends IService<LabWsupervise> {

    /**
     * 添加一对多
     *
     * @param labWsupervise
     */
    public void saveMain(LabWsupervise labWsupervise, List<LabEntrustSample> labSampleList);

    /**
     * 修改一对多
     *
     * @param labWsupervise
     */
    public void updateMain(LabWsupervise labWsupervise, List<LabEntrustSample> labSampleList);

    /**
     * 添加一对多 （导入保存）
     *
     * @param labWsuperviseList
     */
    public void importSaveMain(List<LabWsupervise> labWsuperviseList);

    /**
     * 删除一对多
     *
     * @param id
     */
    public void delMain(String id);

    /**
     * 批量删除一对多
     *
     * @param idList
     */
    public void delBatchMain(Collection<? extends Serializable> idList);

    /**
     * 提交监督抽样单
     *
     * @param labWsupervise
     */

    public void auditSupervise(LabWsupervise labWsupervise);


}
